"""django_server URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/4.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path
from .views import ExcelStuUploadView, SearchStuView, SearchTeaView \
    , ExcelTeaUploadView, SaveStuView, SaveTeaView, \
    ActionStuView, ActionTeaView, saveSelectTeaView, \
    delSelectTeaView, SearchSelectResView, delSelectStuView, SearchSelectTeaItemView, SearchSelectStuView, \
    ExportSelectAllView

urlpatterns = [
    path('uploadStuExcel', ExcelStuUploadView.as_view(), name='uploadStuExcel'),  # 上传学生信息
    path('uploadTeaExcel', ExcelTeaUploadView.as_view(), name='uploadTeaExcel'),  # 上传学生信息
    path('search_stu', SearchStuView.as_view(), name='search_stu'),  # 学生列表
    path('search_tea', SearchTeaView.as_view(), name='search_tea'),  # 导师列表
    path("save_stu", SaveStuView.as_view(), name="save_stu"),
    path("save_tea", SaveTeaView.as_view(), name="save_tea"),
    path("save_select_tea", saveSelectTeaView.as_view(), name="save_select_tea"),  # 选择导师
    path("del_select_tea", delSelectTeaView.as_view(), name="del_select_tea"),  # 退选导师
    path("del_select_stu", delSelectStuView.as_view(), name="del_select_stu"),  # 退选学生
    path("select_res", SearchSelectResView.as_view(), name="select_res"),  # 选择结果
    path("get_select_tea", SearchSelectTeaItemView.as_view(), name="select_tea"),  # 学生选择的老师
    path("get_select_stu", SearchSelectStuView.as_view(), name="select_stu"),  # 老师选择的学生
    # path('treeList', TreeListView.as_view(), name='treeList'),  # 查询权限菜单树信息
    # path('menus', MenusView.as_view(), name='menus'),  # 根据角色查询菜单权限
    # path('stu_save', SaveView.as_view(), name='save'),  # 添加或者修改权限信息
    path('action_stu', ActionStuView.as_view(), name='action_stu'),  # 权限信息操作
    path('action_tea', ActionTeaView.as_view(), name='action_tea'),  # 权限信息操作
    path('export', ExportSelectAllView.as_view(), name='export'),  # 导出
]
